<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <input type="button" value="get请求" class="get">
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        document.querySelector(".get").onclick = function () {
            axios.get("https://new.qq.com/ch2/internet")
            .then(function (response) {
                console.log(response);
            },function (error) {
                console.log(error);
            })
        }
    </script>
</body>
</html>